package com.qf.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author Wy
 * @version V1.0
 * @Project MavenDemo
 * @Package com.qf.listener
 * @Description:
 * @Date 2022/7/4 19:08
 */
@Component
@RabbitListener(queues = "testquery5")
public class WorkListener {

   @RabbitHandler
    public void  message(String str){
        System.out.println("第二个"+str);

    }
}
